/**
/* @author Ramprasad Sivaprakasam (A0092629)
 */
package sg.edu.nus.iss.team4ft.service;

import java.io.Serializable;
import java.util.Date;


//import sg.edu.nus.iss.team4ft.accountsystem.CustomerAccount;

public class Complaint implements Serializable {
	
	private static final long serialVersionUID = 1L;
	private String complaintID;
	private String description = null;
	private int complaintStatus;// = "Open";
	private Date date;// = new Date();
	private String accountNumber;
	private String plan;
	
	public Complaint(String complaintID, String description, int complaintStatus,String accountNumber, String plan, Date comDate) {
		this.complaintID = complaintID;
		this.description = description;
		this.complaintStatus = complaintStatus;
		this.accountNumber = accountNumber;
		this.plan = plan;
		this.date = comDate;
	}

	public String getAccountNumber() {
		return accountNumber;
	}

	
	public String getPlan() {
		return plan;
	}

	
	public void setComplaintStatus(int complaintStatus) {
		this.complaintStatus = complaintStatus;
	}

	public String getComplaintID() {
		return complaintID;
	}	
	
	public Date getComplaintDate() {
		return date;
	}

	public void setComplaintDate(Date complaintDate) {
		this.date = new Date();
	}

	public String getDescription() {
		return description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}


	public int getComplaintStatus(){
		return complaintStatus;
	}
	
	public String getStatus(){
		if (this.complaintStatus == 1){
			return "open";
		}else{
			return "closed";
		}
	}
	
}